package com.java1234.jxc.service.impl;

import com.java1234.jxc.beans.Customer;
import com.java1234.jxc.beans.Supplier;
import com.java1234.jxc.core.base.BaseServiceImpl;
import com.java1234.jxc.service.CustomerService;
import com.java1234.jxc.service.SupplierService;
import org.nutz.dao.Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl extends BaseServiceImpl<Customer> implements CustomerService {

    @Autowired
    public CustomerServiceImpl(Dao dao) {
        super(dao);
    }

    @Override
    public void save(Customer customer) {
        this.insert(customer);
    }

    @Override
    public void delete(Integer id) {

        this.delete(id);

    }
}
